package app.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer UId;
	private String username;
	private String pwd;
	private Integer role;
	private Integer MId;
	private Set exams = new HashSet(0);
	private Set stuSolutions = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String username, String pwd, Integer role) {
		this.username = username;
		this.pwd = pwd;
		this.role = role;
	}

	/** full constructor */
	public User(String username, String pwd, Integer role, Integer MId,
			Set exams, Set stuSolutions) {
		this.username = username;
		this.pwd = pwd;
		this.role = role;
		this.MId = MId;
		this.exams = exams;
		this.stuSolutions = stuSolutions;
	}

	// Property accessors

	public Integer getUId() {
		return this.UId;
	}

	public void setUId(Integer UId) {
		this.UId = UId;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Integer getRole() {
		return this.role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public Integer getMId() {
		return this.MId;
	}

	public void setMId(Integer MId) {
		this.MId = MId;
	}

	public Set getExams() {
		return this.exams;
	}

	public void setExams(Set exams) {
		this.exams = exams;
	}

	public Set getStuSolutions() {
		return this.stuSolutions;
	}

	public void setStuSolutions(Set stuSolutions) {
		this.stuSolutions = stuSolutions;
	}

}